home *** CD-ROM | disk | FTP | other *** search
- From: Michael Cook <mcook@cognex.com>
- Message-ID: <r4spgksdmg.fsf@erawan.cognex.com>
- X-Original-Date: 09 Feb 1996 10:49:27 -0500
- Path: in1.uu.net!bounce-back
- Date: 10 Feb 96 08:50:14 GMT
- Approved: fjh@cs.mu.oz.au
- Return-Path: <daemon@meeker.UCAR.EDU>
- Newsgroups: comp.std.c++
- Subject: Re: #ifdef XXXX
- Organization: Cognex Corporation, Natick, Massachusetts
- References: <1996Feb1.092058.4745@iiasa.ac.at> <4fe1jt$scn@hermes.acs.unt.edu>
- X-Newsreader: September Gnus v0.35/Emacs 19.30
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBFAgUBMRxcWOEDnX0m9pzZAQFUSwF+MNms+Z5xEE5GDLXB0F0b3fgTlvXU2sPQ
- qNMwJ1l7PtZBJhwmJH7//kFESDB9JH7C
- =sie6
-
- >>>>> "JRW" == John R Williams <johnw@jove.acs.unt.edu> writes:
-
- JRW> Also something I have often wished for was something like #warning
- JRW> which would cause the compiler to emit a warning.
-
- I'd like to see `#assert':
-
- #assert sizeof(int)==4
-
- which would be like
-
- #if sizeof(int)!=4
- #error
- #endif
-
- except that it would work. That is, #assert would be a compiler directive,
- not a preprocessor directive, and so there would be no restrictions on the
- kinds of expressions.
-
- Michael.
- ---
- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
- Contact address: std-c++-request@ncar.ucar.edu. Moderation policy:
- http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
-